package com.our.learning.infrastructure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @author : Ice'Clean
 * @date : 2023-06-06
 */
@TableName("t_exam")
public class Exam {
    /** 考试 ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 考试名称 */
    private String name;
    /** 教师 ID */
    private Integer teacherId;
    /** 试卷 ID */
    private Integer paperId;
    /** 试卷检查状态 */
    private Integer checked;
    /** 考试开始时间 */
    private String startTime;
    /** 考试结束时间 */
    private String endTime;
    /** 创建的时间 */
    @TableField(update = "now()")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }
}
